<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label required">权限名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" readonly class="layui-input" value="{$row.title|default=''}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label required">分配节点</label>
            <div class="layui-input-block">
                <table class="layui-table" lay-size="sm">
                    <colgroup>
                        <col>
                        <col>
                        <col>
                    </colgroup>
                    <thead>
                        <tr>
                            <th style="white-space: nowrap;">模块</th>
                            <th>功能</th>
                            <th>权限</th>
                        </tr>
                    </thead>
                    <tbody>
                        {volist name='$module_list' id='module'}
                        {volist name='$module.children' id='controller_item'}
                        <tr class="auth-node-tr">
                            <td style="white-space: nowrap;">{$controller_item.module}</td>
                            <td title="{$controller_item.node}">
                                <input lay-filter="controller-checkbox" type="checkbox" title="{$controller_item.title}">
                            </td>
                            <td>
                                {volist name='controller_item.children' id='action'}
                                <div title="{$action.node}" style="display: inline-block;">
                                    <input type="checkbox" lay-filter="action-checkbox" name="node[]" title="{$action.title}" {$action.checked}  {$action.disabled}  value="{$action.node}">
                                </div>
                                {/volist}
                            </td>
                        </tr>
                        {/volist}
                        {/volist}
                    </tbody>
                </table>
            </div>
        </div>

        <input type="hidden" name="id" readonly class="layui-input" value="{$row.id}">

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.auth/saveAuthorize">确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>